body.post-type-aw_workflow {

	#pageparentdiv {
		display: none;
	}

	#aw_trigger_box,
	#aw_actions_box,
	#aw_options_box,
	#aw_variables_box {

		&.aw-loading {

			.inside,
			h3.hndle {
				opacity: 0.45;
			}

			@include loader();
		}
	}
}


// Hide unwanted metabox headers
#aw_save_box,
#aw_timing_box,
#aw_variables_box {

	.handlediv,
	.hndle,
	.postbox-header { // .postbox-header was added in WP 5.5
		display: none;
	}
}


#post-body .automatewoo-metabox.postbox {

	h3.hndle {
		border-bottom: 1px solid $grey-light-border;
		padding: 9px 15px;
	}

	&.no-drag .hndle {
		cursor: default;
	}

	.inside {
		padding: 0;
		margin: 0;
	}
}


.automatewoo-metabox.postbox {

	.automatewoo-metabox-footer {
		padding: 9px 15px;
		background: $grey-very-light;
		border-top: 1px solid $grey-light-border;
		text-align: right;
	}

	.automatewoo-metabox-pad {
		padding: 20px;
	}

	h2.hndle {

		small {
			font-weight: normal;
			padding-left: 1px;
		}

		.automatewoo-help-link {
			position: relative;
			top: 2px;
			left: -11px;
		}
	}
}

body.wc-wp-version-gte-55 {

	.automatewoo-metabox.postbox {

		h2.hndle {

			small {
				font-weight: normal;
				padding-left: 6px;
				flex-grow: 1;
			}

			.automatewoo-help-link {
				top: 1px;
				left: 0;
			}
		}
	}
}

// Make Backbone.View wrappers inert
// for AutomateWoo.Modal content's grid layout.
.aw-view-trigger-preset-activation-modal,
.aw-view-trigger-compatibility-modal {
	display: contents;
}
